package com.system.honour.controller;

import com.alibaba.druid.stat.DruidStatManagerFacade;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
//druid监控
@RequestMapping(value = "/druid")
@RestController
public class DruidStatController {
	/**
	 * 获取数据源的监控数据
	 * @return
	 */
	@RequestMapping(value = "/stat",method = RequestMethod.GET)
	public Object druidStat(){
		return DruidStatManagerFacade.getInstance().getDataSourceStatDataList();
	}
}
